<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<title>会议管理</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link th:href="@{/css/update.css}" rel="stylesheet"/>
	<th:block th:include="include :: header('会议管理')" />
	<link th:href="@{/css/meeting/iconfont.css}" rel="stylesheet"/>
	<link th:href="@{/css/meeting/projectPlanView.css}" rel="stylesheet"/>

</head>
<body>
	<div class="calcon1">
		<div class="callist" th:each="meetingRoom:${resultMap}">
			<span class="blue" th:text="${meetingRoom.key}"></span>
			<!-- 事件弹出层 -->
			<div class="out">
				<table class="table mytable">
					<thead>
					<tr>
						<th width="17%">会议主题</th>
						<th style="width: 198px;">会议日期</th>
						<th >会议时间段</th>
						<th style="width: 234px;">会议室</th>
						<th >申请人</th>
						<th style="width: 185px;">申请部门</th>
						<th >申请时间</th>
						<th >审批状态</th>
					</tr>
					</thead>
					<tbody>
						<tr th:each="meeting:${meetingRoom.value}">
							<td th:text="${meeting.meetingTheme}"></td>
							<td style="min-width: 198px;" th:text="${meeting.applicationDate} + '~' + ${meeting.applicationDateSecond}">
							</td>
							<td th:text="${meeting.startTime} + '~' + ${meeting.endTime}"></td>
							<td style="min-width: 234px;" th:text="${meeting.meetingRoomName}"></td>
							<td th:text="${meeting.applicantName}"></td>
							<td th:text="${meeting.applicantDepartmentName}"></td>
							<td th:text="${#temporals.format(meeting.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
							<td th:text="${meeting.status==1?'未审核':'已审核'}"></td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</body>
<th:block th:include="include :: footer" />
<script th:src="@{/js/meeting/meetingApplication.js}"></script>
<script th:src="@{/js/meeting/moment.min.js}"></script>
<script type="text/javascript">
	$('tr').click(function () {
		var id = $(this).attr('data-id');
		if (id == undefined) {
			return;
		}
		layer.open({
			type: 2,
			title: '',
			shadeClose: true,
			shade: 0.8,
			area: ['90%', '90%'],
			content: '/meetingApplication/queryDetailInfo?id=' + id
		});
	});

</script>
</html>